<?php 
  require 'RestServer.php';
  require 'xtimeController.php';

  $mode = 'debug'; // 'debug' or 'production'
  $server = new RestServer($mode);
  // $server->refreshCache(); // uncomment momentarily to clear the cache if classes change in production mode

  $server->addClass('xtimeController');

  $server->handle();
